package com.daogu.fuelcard.controller;

import com.daogu.fuelcard.dao.UserMapper;
import com.daogu.fuelcard.utils.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Tag(name = "测试类")
public class TestController {

    @Autowired
    private UserMapper userMapper;

    @Operation(description = "/testA")
    @GetMapping("/testA")
    public Result<String> testA() {
        int i = 1/0;
        return Result.accept("yes");
    }

}
